home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / mandrake_MDKSA-2004-061.nasl < prev    next >
Text File  |  2005-01-14  |  4KB  |  118 lines

  1. #
  2. # (C) Tenable Network Security
  3. #
  4. # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2004:061
  5. #
  6.  
  7.  
  8. if ( ! defined_func("bn_random") ) exit(0);
  9. if(description)
  10. {
  11.  script_id(14160);
  12.  script_bugtraq_id(10591);
  13.  script_version ("$Revision: 1.3 $");
  14.  script_cve_id("CAN-2004-0460", "CAN-2004-0461");
  15.  
  16.  name["english"] = "MDKSA-2004:061: dhcp";
  17.  
  18.  script_name(english:name["english"]);
  19.  
  20.  desc["english"] = "
  21. The remote host is missing the patch for the advisory MDKSA-2004:061 (dhcp).
  22.  
  23.  
  24. A vulnerability in how ISC's DHCPD handles syslog messages can allow a malicious
  25. attacker with the ability to send special packets to the DHCPD listening port to
  26. crash the daemon, causing a Denial of Service. It is also possible that they may
  27. be able to execute arbitrary code on the vulnerable server with the permissions
  28. of the user running DHCPD, which is usually root.
  29. A similar vulnerability also exists in the way ISC's DHCPD makes use of the
  30. vsnprintf() function on system that do not support vsnprintf(). This
  31. vulnerability could also be used to execute arbitrary code and/or perform a DoS
  32. attack. The vsnprintf() statements that have this problem are defined after the
  33. vulnerable code noted above, which would trigger the previous problem rather
  34. than this one.
  35. Thanks to Gregory Duchemin and Solar Designer for discovering these flaws.
  36. The updated packages contain 3.0.1rc14 which is not vulnerable to these
  37. problems. Only ISC DHCPD 3.0.1rc12 and 3.0.1rc13 are vulnerable to these issues.
  38.  
  39.  
  40. Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2004:061
  41. Risk factor : High";
  42.  
  43.  
  44.  
  45.  script_description(english:desc["english"]);
  46.  
  47.  summary["english"] = "Check for the version of the dhcp package";
  48.  script_summary(english:summary["english"]);
  49.  
  50.  script_category(ACT_GATHER_INFO);
  51.  
  52.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  53.  family["english"] = "Mandrake Local Security Checks";
  54.  script_family(english:family["english"]);
  55.  
  56.  script_dependencies("ssh_get_info.nasl");
  57.  script_require_keys("Host/Mandrake/rpm-list");
  58.  exit(0);
  59. }
  60.  
  61. include("rpm.inc");
  62. if ( rpm_check( reference:"dhcp-client-3.0-1.rc14.0.1.100mdk", release:"MDK10.0", yank:"mdk") )
  63. {
  64.  security_hole(0);
  65.  exit(0);
  66. }
  67. if ( rpm_check( reference:"dhcp-common-3.0-1.rc14.0.1.100mdk", release:"MDK10.0", yank:"mdk") )
  68. {
  69.  security_hole(0);
  70.  exit(0);
  71. }
  72. if ( rpm_check( reference:"dhcp-devel-3.0-1.rc14.0.1.100mdk", release:"MDK10.0", yank:"mdk") )
  73. {
  74.  security_hole(0);
  75.  exit(0);
  76. }
  77. if ( rpm_check( reference:"dhcp-relay-3.0-1.rc14.0.1.100mdk", release:"MDK10.0", yank:"mdk") )
  78. {
  79.  security_hole(0);
  80.  exit(0);
  81. }
  82. if ( rpm_check( reference:"dhcp-server-3.0-1.rc14.0.1.100mdk", release:"MDK10.0", yank:"mdk") )
  83. {
  84.  security_hole(0);
  85.  exit(0);
  86. }
  87. if ( rpm_check( reference:"dhcp-client-3.0-1.rc14.0.1.92mdk", release:"MDK9.2", yank:"mdk") )
  88. {
  89.  security_hole(0);
  90.  exit(0);
  91. }
  92. if ( rpm_check( reference:"dhcp-common-3.0-1.rc14.0.1.92mdk", release:"MDK9.2", yank:"mdk") )
  93. {
  94.  security_hole(0);
  95.  exit(0);
  96. }
  97. if ( rpm_check( reference:"dhcp-devel-3.0-1.rc14.0.1.92mdk", release:"MDK9.2", yank:"mdk") )
  98. {
  99.  security_hole(0);
  100.  exit(0);
  101. }
  102. if ( rpm_check( reference:"dhcp-relay-3.0-1.rc14.0.1.92mdk", release:"MDK9.2", yank:"mdk") )
  103. {
  104.  security_hole(0);
  105.  exit(0);
  106. }
  107. if ( rpm_check( reference:"dhcp-server-3.0-1.rc14.0.1.92mdk", release:"MDK9.2", yank:"mdk") )
  108. {
  109.  security_hole(0);
  110.  exit(0);
  111. }
  112. if (rpm_exists(rpm:"dhcp-", release:"MDK10.0")
  113.  || rpm_exists(rpm:"dhcp-", release:"MDK9.2") )
  114. {
  115.  set_kb_item(name:"CAN-2004-0460", value:TRUE);
  116.  set_kb_item(name:"CAN-2004-0461", value:TRUE);
  117. }
  118.